﻿using Max.PH6_2009A.LowCode.Domain;
using Max.PH6_2009A.LowCode.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH6_2009A.LowCode.IService
{
    public interface IUserService:IBaseService<UserModel>
    {
        void InsertUserAndRoles(UserInsertRoleDto dto);
        IEnumerable<string> GetUserRoleByUserId(string userId);
        IEnumerable<MenuModel> GetUserMenu(string userId);
        (bool, string, UserOutputDto) Login(string loginName, string password);
        (bool, string) Delete(List<RbacDeleteByIdDto> ls);

        void InsertMoreEmployee(List<EmployeeModel> employees);
        List<EmployeeModel> GetEmployee();

        List<dynamic> GetMenus();
        int AddMenuByRoleID(int roleId, List<int> menuId);
    }
}
